package cn.hxzy.service.impl;

import cn.hxzy.domain.Exercises;
import cn.hxzy.mapper.ProblemMapper;
import cn.hxzy.service.ProblemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.parsing.Problem;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 项目名: education-platform
 * 当前用户: 18735
 * 创建日期: 2024/6/27 下午4:35
 * 项目介绍:
 */
@Service
public class ProblemServiceImpl implements ProblemService {

    @Autowired
    private ProblemMapper problemMapper;

    @Override
    public List<Exercises> getProblemListByTeacherId(Long teacherId) {
        List<Exercises> exercises= problemMapper.getProblemListByTeacherId(teacherId);
        return exercises;
    }

    @Override
    public List<Exercises> getProblemList(Long classId, Long courseId, Long chapterId,Long teacherId) {
        return problemMapper.getProblemList(classId,courseId,chapterId,teacherId);
    }

    @Override
    public List<Exercises> getProblemListByName(String studentName) {
        return problemMapper.getProblemListByName(studentName);
    }
}
